package com.nulldev.util.uri.yt.rewrite;

public class YoutubeVideo {
	private String url;
	
	private final YoutubeMetadata metadata;
	
	private boolean requiresSupplimentaryVideoAudio;
	
	private int itag;
	
	public YoutubeVideo(final String url, final YoutubeMetadata metadata, final boolean requiresSuppVidAudio,
			final int itag) {
		this.url = url;
		this.metadata = metadata;
		this.requiresSupplimentaryVideoAudio = requiresSuppVidAudio;
		this.itag = itag;
	}
	
	public String videoURL() {
		return this.url;
	}
	
	public YoutubeMetadata getMetadata() {
		return this.metadata;
	}
	
	public boolean requiresSupplimentaryVideoAudio() {
		return this.requiresSupplimentaryVideoAudio;
	}
	
	public int getTag() {
		return this.itag;
	}
	
	@Override
	public String toString() {
		return "YouTubeVideo[metadata=" + this.metadata + ",rsva=" + this.requiresSupplimentaryVideoAudio + ",itag=" + this.itag + ",url=" + this.url + "]";
	}
}
